package team.xiaobaiya.gptchatrobot.util;

/**
 * @ClassName RespCodeEnum
 * @Author Feng Yingnan
 * @Email fengyn1211@163.com
 * @Date 2023/4/7 9:19
 */
public enum RespCodeEnum implements Resp.ForCodeEnum {
    /**
     * 系统错误
     */
    SYSTEM_ERROR(1001, "系统错误")

    ;

    private final int code;
    private final String msg;

    RespCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public Integer code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}
